package com.ruoyi.project.newhope.materialInspection.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 物料检测项目设置(中间[物料主数据设置-化验项目设置])对象 new_hope_material_inspection
 * 
 * @author ruoyi
 * @date 2021-02-08
 */
public class NewHopeMaterialInspection implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物料名称 */
    private String materialName;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialCode;

    /** 物料描述 */
    @Excel(name = "物料描述")
    private String materialDesc;

    /** 物料数据 id */
    @Excel(name = "物料数据 id")
    private Long materialId;

    /** 检测项目 code */
    @Excel(name = "检测项目 code")
    private String inspectionCode;

    /** 检测项目 id */
    @Excel(name = "检测项目 id")
    private Long inspectionId;

    /** 检测项目名称 */
    @Excel(name = "检测项目名称")
    private String inspectionName;

    /** 最大值 */
    @Excel(name = "最大值")
    private Double max;

    /** 最小值 */
    @Excel(name = "最小值")
    private Double min;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    //报警开关
    private Boolean stepSwitch;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getMaterialDesc() {
        return materialDesc;
    }

    public void setMaterialDesc(String materialDesc) {
        this.materialDesc = materialDesc;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setInspectionId(Long inspectionId)
    {
        this.inspectionId = inspectionId;
    }

    public String getInspectionCode() {
        return inspectionCode;
    }

    public void setInspectionCode(String inspectionCode) {
        this.inspectionCode = inspectionCode;
    }

    public Long getInspectionId()
    {
        return inspectionId;
    }

    public String getInspectionName() {
        return inspectionName;
    }

    public void setInspectionName(String inspectionName) {
        this.inspectionName = inspectionName;
    }

    public Double getMax() {
        return max;
    }

    public void setMax(Double max) {
        this.max = max;
    }

    public Double getMin() {
        return min;
    }

    public void setMin(Double min) {
        this.min = min;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getStepSwitch() {
        return stepSwitch;
    }

    public void setStepSwitch(Boolean stepSwitch) {
        this.stepSwitch = stepSwitch;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("materialId", getMaterialId())
            .append("inspectionId", getInspectionId())
            .append("max", getMax())
            .append("min", getMin())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
